import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:honeypotflutter/public/public_get.dart';
import 'package:honeypotflutter/publicBussine/bussine_colors.dart';
import 'package:honeypotflutter/publicBussine/bussine_font.dart';
import 'package:honeypotflutter/publicBussine/bussine_image.dart';
import 'package:honeypotflutter/publicBussine/view/bussine_button.dart';
import 'package:honeypotflutter/public/views/public_appBar.dart';
import 'package:honeypotflutter/public/views/public_scrollView.dart';
import 'logic.dart';

class AccountSignedFailPage extends StatefulWidget {
  const AccountSignedFailPage({Key? key}) : super(key: key);

  @override
  State<AccountSignedFailPage> createState() => _AccountSignedFailPageState();
}

class _AccountSignedFailPageState extends State<AccountSignedFailPage> {
  final AccountSignedFailLogic logic = Get.put(AccountSignedFailLogic());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: MGColors.whileColor,
      appBar: HLAppBar(
        navigationTitle: "签约",
        showBackLeading: false,
        showBottomLine: true,
      ),
      body: HLScrollView(
        crossAxisAlignment: CrossAxisAlignment.center,
        padding: EdgeInsets.only(top: 40),
        children: [
          Image.asset(MGImage.image("public_fail"), width: 80),
          SizedBox(height: 20),
          Text(
            "签约失败",
            style: TextStyle(
              fontWeight: FontWeight.bold,
              fontSize: MGFont.titleFont1,
              color: MGColors.text1Color,
            ),
          ),
          SizedBox(height: 20),
          Text(
            "你的验证信息不通过，请重新提交",
            style: TextStyle(
              fontSize: MGFont.textFont1,
              color: MGColors.text3Color,
            ),
          ),
          SizedBox(height: 30),
          MGButton(
              padding: EdgeInsets.only(left: 30, right: 30, bottom: 30, top: 15),
              title: "重新签约",
              buttonAction: () {
                HLGet.back();
              })
        ],
      ),
    );
  }

  @override
  void dispose() {
    Get.delete<AccountSignedFailLogic>();
    super.dispose();
  }
}
